package cn.bklovezz.yixiantong.ram.controller;

import cn.bklovezz.yixiantong.ram.base.ReturnResult;
import cn.bklovezz.yixiantong.ram.entity.LoginUserModel;
import cn.bklovezz.yixiantong.ram.service.AdminUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api
@Slf4j
@RequestMapping("/api/ram/admin/user-manage")
@RestController
public class AdminUserManageController {
  private AdminUserService adminUserService;

  @Autowired
  public AdminUserManageController(AdminUserService adminUserService) {
    this.adminUserService = adminUserService;
  }

  @GetMapping("/")
  @ApiOperation("获取用户信息列表")
  public ReturnResult<LoginUserModel> getAdminUserList(
          @ApiParam(name = "page") @RequestParam(name = "page", defaultValue = "1") Integer page,
          @ApiParam(name = "pageSize") @RequestParam(name = "size", defaultValue = "10") Integer pageSize,
          @ApiParam() @RequestParam(name = "keyword", defaultValue = "") String keyword
  ) {
    log.info("page -> {}, pageSize -> {}, keyword -> {}", page, pageSize, keyword);
    return null;
  }
}
